﻿using System;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("欢迎来到默默宠物店，请问你要寄养什么动物呢：1、燕子；2、猫；3、老虎；4、老鹰");
            int key = int.Parse(Console.ReadLine());
            Animal a;
            switch (key)
            {
                case 1:
                    a = new Swallow();
                    break;
                case 2:
                    a = new Cat();
                    break;
                case 3:
                    a = new Tiger();
                    break;
                case 4:
                    a = new Eagle();
                    break;
                default:
                    Console.WriteLine("请不要乱选哦！");
                    a = new Tiger();
                    break;
            }

            PetStore ps = new PetStore();
            ps.ConsignAnimal(a);
        }


    }
}

